<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>My Project: kern/sync/sync.h 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">My Project
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_b3dad8e81b3f37b89b2bf0a8abb2d993.html">kern</a></li><li class="navelem"><a class="el" href="dir_836f16519ec1e97f90c9de728e1b7748.html">sync</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">宏定义</a> &#124;
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">sync.h 文件参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;<a class="el" href="intr_8h_source.html">intr.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="mmu_8h_source.html">mmu.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="riscv_8h_source.html">riscv.h</a>&gt;</code><br />
</div><div class="textblock"><div class="dynheader">
sync.h 的引用(Include)关系图:</div>
<div class="dyncontent">
<div class="center"><img src="sync_8h__incl.gif" border="0" usemap="#akern_2sync_2sync_8h" alt=""/></div>
<map name="akern_2sync_2sync_8h" id="akern_2sync_2sync_8h">
<area shape="rect" title=" " alt="" coords="53,5,183,32"/>
<area shape="rect" href="intr_8h.html" title=" " alt="" coords="5,80,60,107"/>
<area shape="rect" href="mmu_8h.html" title=" " alt="" coords="84,80,152,107"/>
<area shape="rect" href="riscv_8h.html" title=" " alt="" coords="177,80,241,107"/>
<area shape="rect" href="defs_8h.html" title=" " alt="" coords="87,155,149,181"/>
</map>
</div>
</div><div class="textblock"><div class="dynheader">
此图展示该文件直接或间接的被哪些文件引用了:</div>
<div class="dyncontent">
<div class="center"><img src="sync_8h__dep__incl.gif" border="0" usemap="#akern_2sync_2sync_8hdep" alt=""/></div>
<map name="akern_2sync_2sync_8hdep" id="akern_2sync_2sync_8hdep">
<area shape="rect" title=" " alt="" coords="206,5,337,32"/>
<area shape="rect" href="console_8c.html" title=" " alt="" coords="13,80,170,107"/>
<area shape="rect" href="pmm_8c.html" title=" " alt="" coords="5,229,135,256"/>
<area shape="rect" href="vmm_8c.html" title=" " alt="" coords="1173,229,1303,256"/>
<area shape="rect" href="vmm_8h.html" title=" " alt="" coords="270,80,401,107"/>
<area shape="rect" href="init_8c.html" title=" " alt="" coords="304,229,415,256"/>
<area shape="rect" href="swap_8h.html" title=" " alt="" coords="499,155,630,181"/>
<area shape="rect" href="trap_8c.html" title=" " alt="" coords="159,229,280,256"/>
<area shape="rect" href="swapfs_8c.html" title=" " alt="" coords="1021,304,1148,331"/>
<area shape="rect" href="swapfs_8h.html" title=" " alt="" coords="970,229,1098,256"/>
<area shape="rect" href="swap_8c.html" title=" " alt="" coords="809,304,939,331"/>
<area shape="rect" href="swap__clock_8c.html" title=" " alt="" coords="429,304,599,331"/>
<area shape="rect" href="swap__clock_8h.html" title=" " alt="" coords="541,229,711,256"/>
<area shape="rect" href="swap__fifo_8c.html" title=" " alt="" coords="626,304,783,331"/>
<area shape="rect" href="swap__fifo_8h.html" title=" " alt="" coords="736,229,895,256"/>
</map>
</div>
</div>
<p><a href="sync_8h_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:a81a5ec049b2b47d1e7d67d31a328d89d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sync_8h.html#a81a5ec049b2b47d1e7d67d31a328d89d">local_intr_save</a>(x)</td></tr>
<tr class="separator:a81a5ec049b2b47d1e7d67d31a328d89d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab7f325a8ea05b4e7bc89b015fd35c0ac"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sync_8h.html#ab7f325a8ea05b4e7bc89b015fd35c0ac">local_intr_restore</a>(x)&#160;&#160;&#160;<a class="el" href="sync_8h.html#a032faaaf34bfa59be75332ff7334801a">__intr_restore</a>(x);</td></tr>
<tr class="separator:ab7f325a8ea05b4e7bc89b015fd35c0ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:aedabe054445606bdb2892a827d55bdc1"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="defs_8h.html#a1062901a7428fdd9c7f180f5e01ea056">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sync_8h.html#aedabe054445606bdb2892a827d55bdc1">__intr_save</a> (void)</td></tr>
<tr class="separator:aedabe054445606bdb2892a827d55bdc1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a032faaaf34bfa59be75332ff7334801a"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="sync_8h.html#a032faaaf34bfa59be75332ff7334801a">__intr_restore</a> (<a class="el" href="defs_8h.html#a1062901a7428fdd9c7f180f5e01ea056">bool</a> flag)</td></tr>
<tr class="separator:a032faaaf34bfa59be75332ff7334801a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">宏定义说明</h2>
<a id="ab7f325a8ea05b4e7bc89b015fd35c0ac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab7f325a8ea05b4e7bc89b015fd35c0ac">&#9670;&nbsp;</a></span>local_intr_restore</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define local_intr_restore</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x</td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="sync_8h.html#a032faaaf34bfa59be75332ff7334801a">__intr_restore</a>(x);</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a81a5ec049b2b47d1e7d67d31a328d89d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a81a5ec049b2b47d1e7d67d31a328d89d">&#9670;&nbsp;</a></span>local_intr_save</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define local_intr_save</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>值:</b><div class="fragment"><div class="line">    <span class="keywordflow">do</span> {                   \</div>
<div class="line">        x = <a class="code" href="sync_8h.html#aedabe054445606bdb2892a827d55bdc1">__intr_save</a>(); \</div>
<div class="line">    } <span class="keywordflow">while</span> (0)</div>
<div class="ttc" id="async_8h_html_aedabe054445606bdb2892a827d55bdc1"><div class="ttname"><a href="sync_8h.html#aedabe054445606bdb2892a827d55bdc1">__intr_save</a></div><div class="ttdeci">static bool __intr_save(void)</div><div class="ttdef"><b>Definition:</b> sync.h:8</div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">函数说明</h2>
<a id="a032faaaf34bfa59be75332ff7334801a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a032faaaf34bfa59be75332ff7334801a">&#9670;&nbsp;</a></span>__intr_restore()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void __intr_restore </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="defs_8h.html#a1062901a7428fdd9c7f180f5e01ea056">bool</a>&#160;</td>
          <td class="paramname"><em>flag</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="sync_8h_a032faaaf34bfa59be75332ff7334801a_cgraph.gif" border="0" usemap="#async_8h_a032faaaf34bfa59be75332ff7334801a_cgraph" alt=""/></div>
<map name="async_8h_a032faaaf34bfa59be75332ff7334801a_cgraph" id="async_8h_a032faaaf34bfa59be75332ff7334801a_cgraph">
<area shape="rect" title=" " alt="" coords="5,5,116,32"/>
<area shape="rect" href="intr_8c.html#af81ea364a876a1339329bc24fa5eaafb" title=" " alt="" coords="164,5,259,32"/>
</map>
</div>

</div>
</div>
<a id="aedabe054445606bdb2892a827d55bdc1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aedabe054445606bdb2892a827d55bdc1">&#9670;&nbsp;</a></span>__intr_save()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="defs_8h.html#a1062901a7428fdd9c7f180f5e01ea056">bool</a> __intr_save </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="sync_8h_aedabe054445606bdb2892a827d55bdc1_cgraph.gif" border="0" usemap="#async_8h_aedabe054445606bdb2892a827d55bdc1_cgraph" alt=""/></div>
<map name="async_8h_aedabe054445606bdb2892a827d55bdc1_cgraph" id="async_8h_aedabe054445606bdb2892a827d55bdc1_cgraph">
<area shape="rect" title=" " alt="" coords="5,5,101,32"/>
<area shape="rect" href="intr_8c.html#a51ef818cc1ceed4340d088bb16277653" title=" " alt="" coords="149,5,248,32"/>
</map>
</div>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
